package com.smooth.site.sx.pc.base.controller;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.smooth.common.site.common.rsp.ReturnResult;
import com.smooth.dao.gen.BizLinkMapper;
import com.smooth.dao.gen.bean.BizLink;
import com.smooth.dao.gen.bean.BizLinkExample;

@Controller
@RequestMapping(value = "/pc")
public class PcLinkController {
	@Autowired
	BizLinkMapper bizLinkMapper;
	@RequestMapping(value = {"p/link/query"},method = {RequestMethod.POST,RequestMethod.GET})
	@ResponseBody
	public ReturnResult register(HttpServletRequest request, HttpServletResponse response) {
		ReturnResult returnResult = new ReturnResult();
		List<BizLink> blist = bizLinkMapper.selectByExample(new BizLinkExample());
		returnResult.setData(blist);
		return returnResult;
	}
}
